/**
 * MCSetMaxActiveConnectionsNumber.java
 */
package commands.model;

/**
 * Request to set a number of maximum active connections.
 * @author Michal Kolodziejski
 */
public class MCSetMaxActiveConnectionsNumber extends ModelCommand {
	/** A number of maximum active connections. */
	private int maxActiveConnectionsNumber;
	private int maxActiveConnectionsPerDownload;
	
	
	

	/**
	 * Constructor
	 * @param maxActiveConnectionsNumber a number of maximum active connections
	 */
	public MCSetMaxActiveConnectionsNumber(int maxActiveConnectionsNumber, int maxActiveConnectionsPerDownload){
		super(ModelCommandType.SET_MAX_ACTIVE_CONNECTIONS_NUMBER);
		this.maxActiveConnectionsNumber = maxActiveConnectionsNumber;
		this.maxActiveConnectionsPerDownload = maxActiveConnectionsPerDownload;
	}

	/**
	 * @return the number of maximum active connections
	 */
	public int getMaxActiveConnectionsNumber() {
		return maxActiveConnectionsNumber;
	}
	
	public int getMaxActiveConnectionsPerDownload()
	{
		return maxActiveConnectionsPerDownload;
	}
}
